#!/bin/bash -ex

export PATH="${GOPATH}/bin:${PATH}"
./mconfig -v -p /usr/local
make -j `nproc 2>/dev/null || echo 1` -C ./builddir all
sudo make -C ./builddir install

make -C ./builddir testall
